alert("You have just erased your current online choices!")
go(1, "Online.dir")
set gOnlineChoice to "none"
set gOnlinePath to "none"
else
if gOnlineChoice = "AOL" then
go("OLAOL")
exit
end if
if gOnlineChoice = "TotalAccess" then
go("OLTA")
exit
end if
if gOnlineChoice = "none" then
resetSprites()
put "Go to movie Online.dir"
go(1, "Online.dir")
exit
else
alert("I don't recognize your service provider: It is currently set to:" & gOnlineChoice)
set gOnlineChoice to "none"
go(1, "Online.dir")
end if
end if
end
on ConnectFound
global gHomeDir, gIniName, gWinVersion, gConnectFile
openXLib("DLLGlue")
set objFindFile to DLLGlue(mnew, "FindFile.DLL", "UpdateOnlinePath", "I", "SSSS")
if voidp(objFindFile) = 1 then
alert("DLLGlue failed; may not be able to find FindFile.DLL" & RETURN & "Current path is " & the pathName)
else
if gWinVersion < 3.94999999999999973 then
set gConnectFile to "connect.exe"
set targetDir to "DIALER\APP\"
else
set gConnectFile to "Netscape.exe"
set targetDir to "PROGRAM\"
end if
set found to objFindFile(mCall, gHomeDir, gIniName, targetDir, gConnectFile)
if objFindFile(mStatus) <> 0 then
alert("ConnectFound failed using objFindFile")
quit()
else
if found then
readPrefsFile()
return 1
else
return 0
end if
end if
end if
objFindFile(mdispose)
closeXLib("DLLGlue")
end
on RegisterFound
global gHomeDir, gIniName, gWinVersion, gRegisterFile
openXLib("DLLGlue")
set objFindFile to DLLGlue(mnew, "FindFile.DLL", "UpdateOnlinePath", "I", "SSSS")
if voidp(objFindFile) = 1 then
alert("DLLGlue failed; may not be able to find FindFile.DLL" & RETURN & "Current path is " & the pathName)
else
if gWinVersion < 3.94999999999999973 then
set gRegisterFile to "register.exe"
set targetDir to "REGISTER\"
else
set gRegisterFile to "access.exe"
set targetDir to "ACCESS\"
end if
set found to objFindFile(mCall, gHomeDir, gIniName, targetDir, gRegisterFile)
if objFindFile(mStatus) <> 0 then
alert("RegisterFound failed using objFindFile")
quit()
else
if found then
readPrefsFile()
return 1
else
return 0
end if
end if
end if
objFindFile(mdispose)
closeXLib("DLLGlue")
end
on CheckWhichPath
global gOnlinePath, gWinVersion, gConnectFile
if gOnlinePath contains "Dialer\App" then
open(gOnlinePath & "connect.exe")
else
if gOnlinePath contains "Program\" then
installMenu(cast "Menubar")
else
if ConnectFound() then
if gWinVersion < 3.94999999999999973 then
installMenu(cast "Menubar")
open(gOnlinePath & gConnectFile)
else
installMenu(cast "Menubar")
end if
else
if gWinVersion < 3.94999999999999973 then
open(gOnlinePath & "register.exe")
else
open(gOnlinePath & "access.exe")
end if
end if
end if
end if
end
on FindConnect
global gOnlinePath, gROMDrive, gWinVersion, gRegisterFile, gConnectFile
if ConnectFound() then
if gWinVersion < 3.94999999999999973 then
installMenu(cast "Menubar")
open(gOnlinePath & gConnectFile)
else
installMenu(cast "Menubar")
end if
else
if RegisterFound() then
open(gOnlinePath & gRegisterFile)
else
if gWinVersion < 3.94999999999999973 then
open(gROMDrive & ":\EarthLnk\Win31\Setup.exe")
else
open(gROMDrive & ":\EarthLnk\Win95\Setup.exe")
end if
end if
end if
end
on LocateTotalAccessPC
global gOnlineChoice, gOnlinePath, gHomeDir, gIniName, gWinVersion
if gWinVersion < 3.94999999999999973 then
go("WIN31MSG")
else
go("WIN95MSG")
end if
set gOnlineChoice to "TotalAccess"
writePrefsFile()
set gIniName to "hawaii.ini"
if gOnlinePath = "none" then
FindConnect()
else
CheckWhichPath()
end if
end
on locateTotalAccess
global gOnlinePath, gPrefsPath, gOnlineChoice
set ffResult to FindFolder()
if ffResult <> EMPTY then
set gOnlinePath to ffResult
set gOnlineChoice to "TotalAccess"
writePrefsFile()
open(gOnlinePath)
else
set gOnlinePath to "none"
beep()
alert("Internet Dialer was not located on your hard drive! Please install TotalAccess again! Note: Internet Dialer will not appear in the TotalAccess folder until you complete the registration process!")
writePrefsFile()
end if
end
on cleanexitOnline
writePrefsFile()
end
on handleServices
global gOnlinePath, gOnlineChoice, gROMDrive, gWinVersion
updateStage()
if the machineType <> 256 then
if gOnlineChoice = "TotalAccess" then
if gOnlinePath <> "none" then
put "gonlinePath=", gOnlinePath
cleanexitOnline()
go("MACMSG")
open(gOnlinePath)
else
go("MACMSG")
locateTotalAccess()
end if
else
if gOnlineChoice = "AOL" then
cleanexitOnline()
unLoadCast()
installMenu(cast "menubar")
CallAOLGoto()
end if
end if
else
if gOnlineChoice = "TotalAccess" then
saveNotebookFile()
LocateTotalAccessPC()
else
if gOnlineChoice = "AOL" then
cleanexitOnline()
unLoadCast()
set installPath to gROMDrive & ":\AOL\25instal.exe"
openXLib("DLLGlue")
set fAOLGoTo to DLLGlue(mnew, "Launch16.DLL", "AOLGoTo", "I", "WSSSSS")
if voidp(fAOLGoTo) = 1 then
alert("DLLGlue failed; may not be able to find Launch16.DLL" & RETURN & "Current path is " & the pathName)
else
put fAOLGoTo(mCall, 0, 0, 0, installPath, "iTravel", 0)